import 'package:flutter/material.dart';
import 'package:x3_component_core/components/button_components/base_light_outline_button.dart';

class BaseBottomSheetButtonBar extends StatelessWidget {
  final String completeText;
  final String cancelText;
  final VoidCallback onComplete;
  final VoidCallback onCancel;

  const BaseBottomSheetButtonBar({Key key, this.onComplete, this.onCancel, this.completeText = '完成', this.cancelText = '取消'}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Row(
      children: [
        Expanded(child: BaseLightOutlineButton(text: cancelText, onPressed: onCancel)),
        SizedBox(width: 12.0),
        Expanded(child: BaseLightOutlineButton(text: completeText, onPressed: onComplete)),
      ],
    );
  }
}
